package com.IronTree.Pojo;


import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;


@TableName(value = "god")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class God {


    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("Energy")
    private int Money;

    @Version
    @TableField("version")
    private Integer Version;



    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;



    public God(String name, int money) {
        this.name = name;
        Money = money;
    }

    public God(Integer id, String name, int money) {
        this.id = id;
        this.name = name;
        Money = money;
    }


}
